package com.wecan.base.constants;

/**
 * @Author liuzhihao
 * @Date 2022.01.15
 * @Version 1.0.0
 * @Description 属性常量
 */
public class PropertyConstants {

    // 一级属性
    public static final String APP_PREFIX = "app";
    public static final String SPRING = "spring";
    public static final String SPRING_REDIS = SPRING + ".redis";

    // 二级属性
    public static final String APP_OSS = APP_PREFIX + ".oss";
    public static final String APP_ALI = APP_PREFIX + ".ali";
    public static final String APP_TENCENT = APP_PREFIX + ".tencent";
    public static final String SPRING_REDISSON = SPRING_REDIS + ".redisson";
    public static final String SPRING_REDISSON_ENABLED = SPRING_REDISSON + ".enabled";
    // 用户相关信息
    public static final String APP_USER_INFO = APP_PREFIX + ".user";
    // 京东相关配置
    public static final String APP_JD = APP_PREFIX + ".jd";
    // 微信相关配置
    public static final String APP_WECHAT = APP_PREFIX + ".wechat";

    // 三级属性
    public static final String APP_OSS_ACCESS_KEY = APP_OSS + ".accessKeyId";
    // 是否开启oss的servlet
    public static final String APP_OSS_OPEN_SERVLET = APP_OSS + ".openServlet";
    // 用户坑位加密属性
    public static final String APP_POSITION_SECRET = APP_USER_INFO + ".positionSecret";
    // 阿里sms
    public static final String APP_ALI_SMS = APP_ALI + ".sms";
    public static final String APP_ALI_PAY = APP_ALI + ".pay";
    // 腾讯sms
    public static final String APP_TENCENT_SMS = APP_TENCENT + ".sms";
    // 腾讯支付
    public static final String APP_TENCENT_PAY = APP_TENCENT + ".pay";
    // 京东key,secret
    public static final String APP_JD_KEY = APP_JD + ".appKey";
    public static final String APP_JD_SECRET = APP_JD + ".appSecret";
    public static final String APP_JD_WEB_KEY = APP_JD + ".webKey";
    public static final String APP_JD_WEB_SECRET = APP_JD + ".webSecret";
    public static final String APP_JD_WEB_SITE_ID = APP_JD + ".webSiteId";
    // 微信授权key,secret
    public static final String APP_WECHAT_AUTH_KEY = APP_WECHAT + ".authKey";
    public static final String APP_WECHAT_AUTH_SECRET = APP_WECHAT + ".authSecret";
    public static final String APP_WECHAT_AUTH_WEB_KEY = APP_WECHAT + ".authWebKey";
    public static final String APP_WECHAT_AUTH_WEB_SECRET = APP_WECHAT + ".authWebSecret";
    // sms
    public static final String APP_ALI_SMS_ACCESSKEY = APP_ALI_SMS + ".accessKey";
    public static final String APP_ALI_SMS_ACCESSSECRET = APP_ALI_SMS + ".accessSecret";

    /* ---------- 注解属性通用值 ---------- */

    public static final String ANNOTATION_PREFIX = "${";
    public static final String ANNOTATION_SUFFIX = "}";

    public static final String ANNOTATION_APP_POSITION_SECRET = ANNOTATION_PREFIX + APP_POSITION_SECRET + ANNOTATION_SUFFIX;
    public static final String ANNOTATION_APP_JD_KEY = ANNOTATION_PREFIX + APP_JD_KEY + ANNOTATION_SUFFIX;
    public static final String ANNOTATION_APP_JD_SECRET = ANNOTATION_PREFIX + APP_JD_SECRET + ANNOTATION_SUFFIX;
    public static final String ANNOTATION_APP_WECHAT_AUTH_KEY = ANNOTATION_PREFIX + APP_WECHAT_AUTH_KEY + ANNOTATION_SUFFIX;
    public static final String ANNOTATION_APP_WECHAT_AUTH_SECRET = ANNOTATION_PREFIX + APP_WECHAT_AUTH_SECRET + ANNOTATION_SUFFIX;
    public static final String ANNOTATION_APP_WECHAT_AUTH_WEB_KEY = ANNOTATION_PREFIX + APP_WECHAT_AUTH_WEB_KEY + ANNOTATION_SUFFIX;
    public static final String ANNOTATION_APP_WECHAT_AUTH_WEB_SECRET = ANNOTATION_PREFIX + APP_WECHAT_AUTH_WEB_SECRET + ANNOTATION_SUFFIX;
    public static final String ANNOTATION_APP_JD_WEB_KEY = ANNOTATION_PREFIX + APP_JD_WEB_KEY + ANNOTATION_SUFFIX;
    public static final String ANNOTATION_APP_JD_WEB_SECRET = ANNOTATION_PREFIX + APP_JD_WEB_SECRET + ANNOTATION_SUFFIX;
    public static final String ANNOTATION_APP_JD_WEB_SITE_ID = ANNOTATION_PREFIX + APP_JD_WEB_SITE_ID + ANNOTATION_SUFFIX;
    public static final String ANNOTATION_APP_ALI_SMS_ACCESSKEY = ANNOTATION_PREFIX + APP_ALI_SMS_ACCESSKEY + ANNOTATION_SUFFIX;
    public static final String ANNOTATION_APP_ALI_SMS_ACCESSSECRET = ANNOTATION_PREFIX + APP_ALI_SMS_ACCESSSECRET + ANNOTATION_SUFFIX;
}
